const std = @import("std");

const gridLib = @import("../grid.zig");


test "create and free" {
	const width: u8 = 10;
	const height: u8 = 12;

	var grid = gridLib.Grid{
		.width = width,
		.height = height,
		.window = undefined,
		.allocator = std.testing.allocator
	};
	try grid.init();
	defer grid.deinit();

    try std.testing.expectEqual(@as(usize, height), grid._grid.len);
    try std.testing.expectEqual(@as(usize, width), grid._grid[0].len);
}
